package ua.kpi.fpm.km61.strat.sp.la.utils;

import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.util.Vector;

public class ViewProcessor {
    
    public Vector<String> makeStringVector(File inpFile) {
	Vector<String> strVector = new Vector<String>();
	if (inpFile == null){
	    return strVector;
	}
	try {
	    FileReader is = new FileReader(inpFile);
	    BufferedReader br = new BufferedReader(is);
	    String tmp = "";
	    while ((tmp = br.readLine()) != null) {
		strVector.add(tmp);
	    }
	    br.close();
	    is.close();
	} catch (IOException e) {
	    e.printStackTrace();
	}
	return strVector;
    }
}
